package cn.wolfcode.wolf2w.respository;

import cn.wolfcode.wolf2w.domain.Region;
import cn.wolfcode.wolf2w.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 区域持久化操作接口
 */
@Repository
public interface RegionRepository extends MongoRepository<Region, String> {

    /**
     * 热门区域 并 排序
     * @param stateHot
     * @return
     */
    List<Region> findByIshotOrderBySequence(int stateHot);
}
